package close.mazegame.art.tileset;

import close.mazegame.art.Art;

import com.badlogic.gdx.graphics.g2d.TextureRegion;

public class FullWallTileSet extends WallTileSet {

	private TextureRegion[] wallTextures;
	
	public FullWallTileSet(String filename, int tileSize) {
		wallTextures = Art.split(filename, tileSize, tileSize);
		
		assert wallTextures.length == (8 * 4);
	}

	@Override
	public TextureRegion getTexture(int mask, int corner) {
		assert corner <= 3;
		return wallTextures[mask + 8*corner];
	}

}
